package com.haoliangtian.bean;

import com.bin.david.form.annotation.SmartColumn;
import com.bin.david.form.annotation.SmartTable;

import java.util.List;

/**
 * 订单信息<br>
 * 2020/5/22 11:11 PM
 *
 * @author 华软科技
 * @version 1.0
 */
public class OrderInfo {


    /**
     * success : true
     * message : success
     * data :
     * * code : 1
     * sessMap : null
     */

    private boolean success;
    private String message;
    private DataBean data;
    private int code;
    private Object sessMap;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getSessMap() {
        return sessMap;
    }

    public void setSessMap(Object sessMap) {
        this.sessMap = sessMap;
    }

    public static class DataBean {
        /**
         * total : 13
         * list :
         * * pageNum : 1
         * pageSize : 10
         * size : 10
         * startRow : 1
         * endRow : 10
         * pages : 2
         * prePage : 0
         * nextPage : 2
         * isFirstPage : true
         * isLastPage : false
         * hasPreviousPage : false
         * hasNextPage : true
         * navigatePages : 8
         * navigatepageNums : [1,2]
         * navigateFirstPage : 1
         * navigateLastPage : 2
         */

        private int total;
        private int pageNum;
        private int pageSize;
        private int size;
        private int startRow;
        private int endRow;
        private int pages;
        private int prePage;
        private int nextPage;
        private boolean isFirstPage;
        private boolean isLastPage;
        private boolean hasPreviousPage;
        private boolean hasNextPage;
        private int navigatePages;
        private int navigateFirstPage;
        private int navigateLastPage;
        private List<ListBean> list;
        private List<Integer> navigatepageNums;

        @Override
        public String toString() {
            return "DataBean{" +
                    "total=" + total +
                    ", pageNum=" + pageNum +
                    ", pageSize=" + pageSize +
                    ", size=" + size +
                    ", startRow=" + startRow +
                    ", endRow=" + endRow +
                    ", pages=" + pages +
                    ", prePage=" + prePage +
                    ", nextPage=" + nextPage +
                    ", isFirstPage=" + isFirstPage +
                    ", isLastPage=" + isLastPage +
                    ", hasPreviousPage=" + hasPreviousPage +
                    ", hasNextPage=" + hasNextPage +
                    ", navigatePages=" + navigatePages +
                    ", navigateFirstPage=" + navigateFirstPage +
                    ", navigateLastPage=" + navigateLastPage +
                    ", list=" + list +
                    ", navigatepageNums=" + navigatepageNums +
                    '}';
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getStartRow() {
            return startRow;
        }

        public void setStartRow(int startRow) {
            this.startRow = startRow;
        }

        public int getEndRow() {
            return endRow;
        }

        public void setEndRow(int endRow) {
            this.endRow = endRow;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getPrePage() {
            return prePage;
        }

        public void setPrePage(int prePage) {
            this.prePage = prePage;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public boolean isIsFirstPage() {
            return isFirstPage;
        }

        public void setIsFirstPage(boolean isFirstPage) {
            this.isFirstPage = isFirstPage;
        }

        public boolean isIsLastPage() {
            return isLastPage;
        }

        public void setIsLastPage(boolean isLastPage) {
            this.isLastPage = isLastPage;
        }

        public boolean isHasPreviousPage() {
            return hasPreviousPage;
        }

        public void setHasPreviousPage(boolean hasPreviousPage) {
            this.hasPreviousPage = hasPreviousPage;
        }

        public boolean isHasNextPage() {
            return hasNextPage;
        }

        public void setHasNextPage(boolean hasNextPage) {
            this.hasNextPage = hasNextPage;
        }

        public int getNavigatePages() {
            return navigatePages;
        }

        public void setNavigatePages(int navigatePages) {
            this.navigatePages = navigatePages;
        }

        public int getNavigateFirstPage() {
            return navigateFirstPage;
        }

        public void setNavigateFirstPage(int navigateFirstPage) {
            this.navigateFirstPage = navigateFirstPage;
        }

        public int getNavigateLastPage() {
            return navigateLastPage;
        }

        public void setNavigateLastPage(int navigateLastPage) {
            this.navigateLastPage = navigateLastPage;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public List<Integer> getNavigatepageNums() {
            return navigatepageNums;
        }

        public void setNavigatepageNums(List<Integer> navigatepageNums) {
            this.navigatepageNums = navigatepageNums;
        }

        @SmartTable(name = "粮食订单")
        public static class ListBean {
            /**
             * id : 61
             * lsddfbbh : F20200518000012
             * lspz : 中麦578
             * lszlyq : 二级
             * zzqksrq : null
             * zzqjsrq : null
             * ddyxq : 30
             * zzzq : 2020年冬小麦
             * zzqy : 黄河流域
             * sgck : null
             * tjsj : 2020-05-12
             * fhyj : null
             * fbsj : null
             * bz : null
             * dwmc : 洛阳农业有限责任公司
             * jsdwmc : 河南豫粮集团
             * fhrYhid : null
             * lsddfbDwid : null
             * fhzt : 0
             * lszddjyq : null
             * ddds : 200
             * sgj : null
             */
            @SmartColumn(id = 1, name = "序号",fixed = true)
            private int index;//展示序号
            @SmartColumn(id = 2, name = "发布单位")
            private String dwmc;//发布单位
            @SmartColumn(id = 3, name = "发布编号")
            private String lsddfbbh;//发布编号
            @SmartColumn(id = 4, name = "粮食品种")
            private String lspz;//粮食品种
            @SmartColumn(id = 5, name = "质量等级要求")
            private String lszlyq;//质量等级要求
            @SmartColumn(id = 6, name = "种植区域")
            private String zzqy;//种植区域
            @SmartColumn(id = 7, name = "订单吨数")
            private int ddds;//订单吨数
            @SmartColumn(id = 8, name = "种植周期")
            private String zzzq;//种植周期
            @SmartColumn(id = 9, name = "订单有效期（天）")
            private String ddyxq;//订单有效期（天）
            @SmartColumn(id = 10, name = "申请日期")
            private String tjsj;//申请日期
            @SmartColumn(id = 11, name = "提交单位")
            private String jsdwmc;//提交单位
            @SmartColumn(id = 12, name = "操作")
            private String cz;//操作
            private Object zzqksrq;
            private Object zzqjsrq;
            private Object sgck;
            private Object fhyj;
            private Object fbsj;
            private Object bz;
            private int id;
            private Object fhrYhid;
            private Object lsddfbDwid;
            private int fhzt;
            private Object lszddjyq;
            private Object sgj;

            public String getCz() {
                return cz;
            }

            public void setCz(String cz) {
                this.cz = cz;
            }

            public int getIndex() {
                return index;
            }

            public void setIndex(int index) {
                this.index = index;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getLsddfbbh() {
                return lsddfbbh;
            }

            public void setLsddfbbh(String lsddfbbh) {
                this.lsddfbbh = lsddfbbh;
            }

            public String getLspz() {
                return lspz;
            }

            public void setLspz(String lspz) {
                this.lspz = lspz;
            }

            public String getLszlyq() {
                return lszlyq;
            }

            public void setLszlyq(String lszlyq) {
                this.lszlyq = lszlyq;
            }

            public Object getZzqksrq() {
                return zzqksrq;
            }

            public void setZzqksrq(Object zzqksrq) {
                this.zzqksrq = zzqksrq;
            }

            public Object getZzqjsrq() {
                return zzqjsrq;
            }

            public void setZzqjsrq(Object zzqjsrq) {
                this.zzqjsrq = zzqjsrq;
            }

            public String getDdyxq() {
                return ddyxq;
            }

            public void setDdyxq(String ddyxq) {
                this.ddyxq = ddyxq;
            }

            public String getZzzq() {
                return zzzq;
            }

            public void setZzzq(String zzzq) {
                this.zzzq = zzzq;
            }

            public String getZzqy() {
                return zzqy;
            }

            public void setZzqy(String zzqy) {
                this.zzqy = zzqy;
            }

            public Object getSgck() {
                return sgck;
            }

            public void setSgck(Object sgck) {
                this.sgck = sgck;
            }

            public String getTjsj() {
                return tjsj;
            }

            public void setTjsj(String tjsj) {
                this.tjsj = tjsj;
            }

            public Object getFhyj() {
                return fhyj;
            }

            public void setFhyj(Object fhyj) {
                this.fhyj = fhyj;
            }

            public Object getFbsj() {
                return fbsj;
            }

            public void setFbsj(Object fbsj) {
                this.fbsj = fbsj;
            }

            public Object getBz() {
                return bz;
            }

            public void setBz(Object bz) {
                this.bz = bz;
            }

            public String getDwmc() {
                return dwmc;
            }

            public void setDwmc(String dwmc) {
                this.dwmc = dwmc;
            }

            public String getJsdwmc() {
                return jsdwmc;
            }

            public void setJsdwmc(String jsdwmc) {
                this.jsdwmc = jsdwmc;
            }

            public Object getFhrYhid() {
                return fhrYhid;
            }

            public void setFhrYhid(Object fhrYhid) {
                this.fhrYhid = fhrYhid;
            }

            public Object getLsddfbDwid() {
                return lsddfbDwid;
            }

            public void setLsddfbDwid(Object lsddfbDwid) {
                this.lsddfbDwid = lsddfbDwid;
            }

            public int getFhzt() {
                return fhzt;
            }

            public void setFhzt(int fhzt) {
                this.fhzt = fhzt;
            }

            public Object getLszddjyq() {
                return lszddjyq;
            }

            public void setLszddjyq(Object lszddjyq) {
                this.lszddjyq = lszddjyq;
            }

            public int getDdds() {
                return ddds;
            }

            public void setDdds(int ddds) {
                this.ddds = ddds;
            }

            public Object getSgj() {
                return sgj;
            }

            public void setSgj(Object sgj) {
                this.sgj = sgj;
            }

            @Override
            public String toString() {
                return "ListBean{" +
                        "id=" + id +
                        ", lsddfbbh='" + lsddfbbh + '\'' +
                        ", lspz='" + lspz + '\'' +
                        ", lszlyq='" + lszlyq + '\'' +
                        ", zzqksrq=" + zzqksrq +
                        ", zzqjsrq=" + zzqjsrq +
                        ", ddyxq='" + ddyxq + '\'' +
                        ", zzzq='" + zzzq + '\'' +
                        ", zzqy='" + zzqy + '\'' +
                        ", sgck=" + sgck +
                        ", tjsj='" + tjsj + '\'' +
                        ", fhyj=" + fhyj +
                        ", fbsj=" + fbsj +
                        ", bz=" + bz +
                        ", dwmc='" + dwmc + '\'' +
                        ", jsdwmc='" + jsdwmc + '\'' +
                        ", fhrYhid=" + fhrYhid +
                        ", lsddfbDwid=" + lsddfbDwid +
                        ", fhzt=" + fhzt +
                        ", lszddjyq=" + lszddjyq +
                        ", ddds=" + ddds +
                        ", sgj=" + sgj +
                        '}';
            }
        }
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", code=" + code +
                ", sessMap=" + sessMap +
                '}';
    }
}
